import java.awt.Graphics;
import java.awt.image.BufferedImage;

import javax.swing.JComponent;


public class HistogramImage extends JComponent {
	private BufferedImage i1;
	private BufferedImage i2;
	private BufferedImage i3;
	
	public HistogramImage(BufferedImage img1, BufferedImage img2, BufferedImage img3){
		i1 = img1;
		i2 = img2;
		i3 = img3;
	}
	public void paintComponent(Graphics g){
		super.paintComponent(g);
        g.drawImage(i1, 0, 0, this);
        g.drawImage(i2, 0, 0, this);
        g.drawImage(i3, 0, 0, this);
	}

}
